import os, time
from selenium import webdriver
d=webdriver.Chrome()
d.maximize_window()
d.get('https://test.rabbitpre.com/')
d .find_element_by_id('g-j-signin-btn').click()
d .switch_to.frame('sso')
d .find_element_by_xpath('/html/body/div[1]/div/div[2]/div[1]/span[2]').click()
d .find_element_by_xpath('/html/body/div[1]/div/div[2]/div[3]/div[1]/input').send_keys('185xxxxx')
d .find_element_by_xpath('/html/body/div[1]/div/div[2]/div[3]/div[2]/input').send_keys('1xxxxx')
d .find_element_by_xpath('/html/body/div[1]/div/div[2]/div[3]/button').click()
time.sleep(1)
d.get('https://editor.test.rabbitpre.com/')
time.sleep(3)
d.find_element_by_xpath('//*[@id="editor"]/section/header/div/nav/button[2]/span[2]').click()